package com.da.springtest.life.test8;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;

@Configurable
public class DestroyConfig {

    @Bean(destroyMethod = "customDestroyMethod")
    public ServiceA serviceA() {
        return new ServiceA();
    }

}